package com.example.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author :蕉绿
 * @Date : 2023/2/17 13:51
 * @Version : V1.0
 * @Description :
 */
@RestController
@Slf4j
public class LogController {

    @RequestMapping("/log")
    public String getLog() {
        log.warn("警告日志!");
        log.error("错误日志!");
        return "hello!";
    }
}
